<template>
  <div>
    <h1>客户经理</h1>
    <van-field label="机构名称" v-model="form.company_name"></van-field>
    <van-field label="经理名称" v-model="form.name"></van-field>
    <van-field label="总金额" v-model="form.tmoney"></van-field>
    <van-field label="客户金额" v-model="form.usermoney"></van-field>
    <van-button round @click="add">添加</van-button>
    <h1>注册来源</h1>
    <van-field label="注册来源名称" v-model="regi.name"></van-field>
    <van-button round @click="regiadd">添加</van-button>
  </div>
</template>

<script>
import axios from 'axios'

export default {
  name: "add_kujl",
  data() {
    return {
      form: {},
      regi: {}

    }
  },
  methods: {
    add() {
      axios.post('/finan/khjl', this.form).then(res => {
        if (res.data.code == 200) {
          alert('添加成功')
        }
      })
    },
    regiadd() {
      axios.post('/finan/regi', this.regi).then(res => {
        if (res.data.code == 200) {
          alert('添加成功')
        }
      })


    }
  }
}
</script>

<style scoped>

</style>